package zFactory;

import bRM_LL73.BRM_LL73;
import bRM_LL73.BRM_LL73Factory;
import genArchi.Node;

public class NodeLiu73a01 implements NodeInterface {

	/**
	 * Attributes
	 */
	private int nb_tasks;
	private boolean enableCreate;
	
	/**
	 * 
	 */
	public NodeLiu73a01(int nb_tasks, boolean enableCreate) 
	{
		this.nb_tasks = nb_tasks;
		this.enableCreate = enableCreate;
	}
	
	@Override
	public Node createNode() 
	{
		/* Create an instance of the model*/
		BRM_LL73 _liu73a01 = BRM_LL73Factory.eINSTANCE.createBRM_LL73();
		
		/**/
		_liu73a01.setNb_Tasks(this.nb_tasks);
		
		/**/
		return _liu73a01;
		
	}

	@Override
	public String getNodeName() 
	{
		return "bRM_LL73.impl.BRM_LL73Impl";
	}

	@Override
	public void update(Node node) {}

	public boolean isEnable() 
	{
		return this.enableCreate;
	}
}
